{if $full_page}

<!-- $Id: users_list.htm 17053 2010-03-15 06:50:26Z sxc_shop $ -->

{include file="pageheader.htm"}

{insert_scripts files="../js/utils.js,listtable.js"}



<div class="form-div">

  <form action="javascript:searchUser()" name="searchForm">

	关键字：<input type="text" name="keyword" /> 

	选择公众号：

	<select name="from_id">

		<option value="0">所有</option>

		{foreach item=item from=$list}

		<option value="{$item.id}">{$item.title}</option>

		{/foreach}

	</select>

	<input type="submit" value="{$lang.button_search}" />

  </form>

</div>

<form method="POST" action="" name="listForm" onsubmit="return confirm_bath()">

<!-- start users list -->

<form method="get" action="weixin.php?act=fans">

<div class="list-div" id="listDiv">

{/if}

<table width="100%" cellspacing="1" cellpadding="3" id="list-table">

  <tr>

    <th>粉丝ID</th>

    <th>昵称</th>

	<th>性别</th>

	<th>地区</th>

	<th>纬度/经度/精度</th>

	<th>是否关注</th>

	<th>是否绑定</th>

	<th>会员名称</th>

	<th>时间</th>

	<th>留言信息</th>

	<th>来自</th>

  </tr>

	{foreach item=item from=$user_list}

  <tr>

	<td>{$item.fake_id}</td>

	<td>{$item.nickname}</td>

	<td>

	{if $item.sex eq 1}男{/if}

	{if $item.sex eq 2}女{/if}

	{if $item.sex eq 0}未知{/if}

	</td>

	<td>

	{$item.country} {$item.province} {$item.city}

	</td>

	<td>

	{$item.Latitude} {$item.Longitude} {$item.Precision}

	</td>

	<td>{if $item.isfollow eq 1}已关注{else}未关注{/if}</td>

	<td>{if $item.ecuid gt 0}<a href="users.php?act=edit&id={$item.ecuid}">已绑定</a>{else}未绑定{/if}</td>

	<td>{$item.user_name}</td>

	<td>{$item.createymd}</td>

	<td><a href="weixin.php?act=fansmsg&fake_id={$item.fake_id}">查看</a>|<a href="weixin.php?act=fans&fake_id={$item.fake_id}">删除</a></td>

	<td>{$from[$item.from_id]}</td>

  </tr>

	{foreachelse}

  <tr><td class="no-records" colspan="8">{$lang.no_records}</td></tr>

  {/foreach}

  <tr>

		<td colspan="2">

      <input type="hidden" name="act" value="fans" /></td>

      <td align="right" nowrap="true" colspan="6">

      {include file="page.htm"}

      </td>

  </tr>

  </table>

<!-- end users list -->

{if $full_page}

</div>

</form>

<script type="text/javascript" language="JavaScript">

<!--

listTable.recordCount = {$record_count};

listTable.pageCount = {$page_count};



{foreach from=$filter item=item key=key}

listTable.filter.{$key} = '{$item}';

{/foreach}



{literal}

onload = function()

{

    document.forms['searchForm'].elements['keyword'].focus();

    // 开始检查订单

    startCheckOrder();

}



/**

 * 搜索用户

 */

function searchUser()

{

    listTable.filter['keywords'] = Utils.trim(document.forms['searchForm'].elements['keyword'].value);

	listTable.filter['from_id'] = Utils.trim(document.forms['searchForm'].elements['from_id'].value);

    listTable.filter['page'] = 1;

    listTable.loadList();

}



function confirm_bath()

{

  userItems = document.getElementsByName('checkboxes[]');



  cfm = '{$lang.list_remove_confirm}';



  for (i=0; userItems[i]; i++)

  {

    if (userItems[i].checked && userItems[i].notice == 1)

    {

      cfm = '{$lang.list_still_accounts}' + '{$lang.list_remove_confirm}';

      break;

    }

  }



  return confirm(cfm);

}

//-->

</script>

{/literal}

{include file="pagefooter.htm"}

{/if}